package service

import "bc/dao"

type device struct {

}
var d *dao.Device

func (t *device)Create(device dao.Device) error {

	return d.Create(device)

}
func (t *device)Delete(w map[string]interface{}) error {
	return d.Delete(w)
}
func (t *device)Update(d dao.Device,w map[string]interface{}) error {
	return d.Update(d,w)
}
func (t *device)Find(data dao.Device,pageSize int,pageIndex int) ([]dao.Device,int,error) {
	return data.Find(pageSize, pageIndex)
}
var Device = &device{}
